package com.best.util;

import javax.servlet.http.HttpServletRequest;

public class SessionUtils{
	public static <T> T getSession(String name, HttpServletRequest request) {
		return (T) request.getSession().getAttribute(name);
	}
	
	public static void setSession(String name,Object value,HttpServletRequest request){
		request.getSession().setAttribute(name, value);
	}
}
